package com.ad_hccm.service.impl.GeneralInformation;

import com.ad_hccm.dao.GeneralInformation.InducingFactorsDao;
import com.ad_hccm.domain.GeneralInformation.InducingFactors;
import com.ad_hccm.service.GeneralInformation.InducingFactorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 诱发或加重因素ServiceImpl
 */
@Service
public class InducingFactorsServiceImpl implements InducingFactorsService {
    @Autowired
    private InducingFactorsDao inducingFactorsDao;

    @Override
    public boolean save(InducingFactors inducingFactors) {
        return inducingFactorsDao.save(inducingFactors);
    }

    @Override
    public boolean update(InducingFactors inducingFactors) {
        System.out.println(inducingFactors);
        return inducingFactorsDao.update(inducingFactors);
    }

    @Override
    public InducingFactors getById(String id) {
        return inducingFactorsDao.getById(id);
    }

    @Override
    public List<InducingFactors> getAll() {
        return inducingFactorsDao.getAll();
    }
}
